Use GTK_RESIZE_PARENT resize_mode for GtkViewport
authorAlexander Larsson <alexl@redhat.com>
Wed, 12 Dec 2012 13:59:06 +0000 (14:59 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 12 Dec 2012 14:03:24 +0000 (15:03 +0100)
commit0cb714fe62c6d2a21f578a53f316a94a777dd602
treedc7c58ced729f10cdc71fd1fd225e6f3267e835f
parent4594e0fd34834af71315b38ce50508ae14a5e4a8
Use GTK_RESIZE_PARENT resize_mode for GtkViewport

We used to use GTK_RESIZE_QUEUE, but that is problematic for e.g
a GtkScrolledWindow with NEVER scroll policies, as size changes
in ancestors will never get propagated to the scrolled window, causing
it to not have the correct size.

This is a slight performance hit, but in practice its not bound to be
problematic. In typical UIs there is only a single "large" GtkScrolledWindow
visible at a time, so a size requeust propagating out of such a window
will only hit the smaller amount of widgetry outside the scrolled window,
and additionally all such widgets will have their size request caches
still valid.

https://bugzilla.gnome.org/show_bug.cgi?id=690099
gtk/gtkviewport.c